﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text=="+")
        {
            Calculadora c = new Calculadora();
            try
            {
                
                TextBox9.Text = ""+c.sumar(Convert.ToInt32(TextBox2.Text), Convert.ToInt32(TextBox3.Text), Convert.ToInt32(TextBox4.Text), Convert.ToInt32(TextBox5.Text));
                                  
                
                
            }
            catch (Exception)
            {
                
                throw;
            }
        }
        else
        {
            //if (TextBox1.Text="f")
            //{

            //}
            //else
            //{
            //    if (TextBox1.Text = "s")
            //    {

            //    }
            //    else
            //    {
            //        if (TextBox1.Text = "g")
            //        {

            //        }
            //        else
            //        {

            //        }
            //    }
            //}
        }
    }
}
